//    Copyright (C) Kherty.  All rights reserved.
using OpenLS.Core;
using OpenLS.Drawing;

namespace OpenLS.Spreadsheet
{
    class SetThemeUndoUnit : IUndoUnit
    {
        public SetThemeUndoUnit(Workbook owner, Theme theme)
        {
            this.owner = owner;
            this.theme = theme;
        }

        readonly Workbook owner;
        readonly Theme theme;
        #region IUndoUnit Members

        public void Do()
        {
            owner.Theme = theme;
        }

        public bool Merge(IUndoUnit unit)
        {
            return false;
        }

        #endregion
    }
}
